<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap-theme.min.css"/>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.10.0/jquery.min.js"></script>
    <script type="text/javascript" src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading" style="height: 300px;" align="center">
        <h3 class="panel-title" >测试页面</h3>

        <!--默认使用 thymleaf 模板引擎-->
        <h1>用户ID：<p th:text="${uid}"></p></h1>

        <h1>Session中：用户ID：<p th:text="${session.user.uid}"></p></h1>

    </div>
</div>
</body>
</html>